﻿{extend name="layout/main-block" /}
{block name="sub-wrapper"}
    <!--内容容器-->
    <section id="sub-wrapper" class="full-screen page-carEvent">
        <!--数据展示容器-->
        <div id="sub-content">
            <div id="sub-header">
                <div class="sub-title">
                    <h3><i class="fa fa-car"></i>车辆--事件报表</h3>
                </div>
                <div class="sub-tools">
                    <div id="searchTool">
                        <form class="form-inline">
                            <input size="30" class="form-control" id="phname" placeholder="请输入设备名称或IMEI号进行检索" />
                            <a class="btn btn-primary" id="searchname"><i class="fa fa-search"></i>搜索</a>
                            <a class="btn btn-info" id="delSearch"><i class="fa fa-search"></i>清空搜索</a>
                        </form>
                    </div>
                </div>
            </div>

            <div class="table-responsive data-table">
                <table class="table table-striped table-bordered table-hover">
                    <thead>
                    <tr>
                        <!-- <th class="text-center" width="34px">
                            <input type="checkbox" />
                        </th> -->
                        <th>ID</th>
                        <th>设备名称</th>
                        <th>设备IMEI</th>
                        <th>告警类型</th>
                        <th>关联用户</th>
                        <th>告警位置</th>
                        <th>告警详情</th>
                        <th>车牌号</th>
                        <th width="200px">告警时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="carevent" id="v" empty="$empty" }
                    <tr>
                        <!-- <td class="text-center">
                            <input type="checkbox" />
                        </td> -->
                        <td>{$v.id}</td>
                        <td>{$v.dname}</td>
                        <td>{$v.imei}</td>
                        <td>{$v.tname}</td>
                        <td>{$v.username}</td>
                        <td>{$v.position}</td>
                        <td>{$v.detail}</td>
                        <td>{$v.plate_number}</td>
                        <td>{$v.created_at}</td>
                    </tr>
                    {/volist}
                    </tbody>
                    <tfoot>
                    <tr>
                        <td colspan="5" class="">
                            {$page}
                            <!--<ul class="pagination">
                                <li>
                                    <a href="#" aria-label="Previous">
                                        <span aria-hidden="true">&laquo;</span>
                                    </a>
                                </li>
                                <li class="active"><a href="#">1</a></li>
                                <li><a href="#">2</a></li>
                                <li><a href="#">3</a></li>
                                <li><a href="#">4</a></li>
                                <li><a href="#">5</a></li>
                                <li><a href="#">...</a></li>
                                <li><a href="#">999</a></li>
                                <li>
                                    <a href="#" aria-label="Next">
                                        <span aria-hidden="true">&raquo;</span>
                                    </a>
                                </li>
                            </ul>-->
                        </td>
                        <td colspan="3" class="text-center">
                            <div class="table-summary">
                                <div class="input-group">
                                    <div class="input-group-addon">到第</div>
                                    <input type="text" class="form-control" id="goto" placeholder="" style="width:40px;">
                                    <div class="input-group-addon">页</div>
                                    <span class="input-group-btn">
                                        <a class="btn btn-primary" data-currentPage="{$currentPage}" data-lastPage="{$lastPage}" id="gotoPage"><i class="fa fa-arrow-right"></i>确定</a>
                                    </span>
                                </div>
                            </div>
                        </td>
                        <td colspan="2" class="text-center">
                            共<span id="total-record" class="text-success fa-2x"> {$count} </span>条记录
                        </td>
                    </tr>
                    </tfoot>
                </table>
            </div>
        </div>
    </section>
{/block}


